home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 125 / Computer Shopper CD-ROM Issue 125 (1998-07)(Dennis Publishing).iso / Business / Dazzler / DAZZLER.Z / CCourseList.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-26  |  903 b   |  46 lines

  1. import java.util.NoSuchElementException;
  2.  
  3. class CCourseList extends CObList {
  4.    CCourse GetPrevious() throws illegalListOpException {
  5.       return (CCourse)super.prev();
  6.    }
  7.  
  8.    CCourseList() {
  9.       super(true);
  10.    }
  11.  
  12.    void addTail(CCourse var1) {
  13.       ((CObList)this).addElement(var1);
  14.    }
  15.  
  16.    CCourse GetTail() {
  17.       return (CCourse)((CObList)this).end();
  18.    }
  19.  
  20.    CCourse GetHead() {
  21.       return (CCourse)((CObList)this).start();
  22.    }
  23.  
  24.    boolean Remove(CCourse var1) {
  25.       return ((CObList)this).removeElement(var1);
  26.    }
  27.  
  28.    CCourse GetNext() {
  29.       return (CCourse)((CObList)this).next();
  30.    }
  31.  
  32.    CCourse GetNext(CCourse var1) {
  33.       new CCourse();
  34.       if (((CObList)this).findElement(var1)) {
  35.          try {
  36.             CCourse var2 = this.GetNext();
  37.             return var2;
  38.          } catch (NoSuchElementException var3) {
  39.             return null;
  40.          }
  41.       } else {
  42.          return null;
  43.       }
  44.    }
  45. }
  46.